﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace WCFServiceWebRole1
{
    // 注意: 您可以使用 [重構] 功能表上的 [重新命名] 命令同時變更程式碼和組態檔中的介面名稱 "IService1"。
    [ServiceContract]
    public interface IService1
    {

        [OperationContract]
        string GetData(int value);

        [OperationContract]
        IEnumerable<MyStaff> GetStaffs();

        [OperationContract]
        IEnumerable<DrugRemind> GetReminds(DateTime date, int PatientID);

        [OperationContract]
        int GetPatientID(string IDentity, string PatientName);

        // TODO: 在此新增您的服務作業
    }


    //使用下列範例中所示的資料合約，新增複合型別至服務作業。
    [DataContract]
    public class MyStaff
    {
        [DataMember]
        public int ID { get; set; }
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public byte[] Photo { get; set; }
        [DataMember]
        public string Div { get; set; }
        [DataMember]
        public string Tel { get; set; }
        [DataMember]
        public string Job { get; set; }
        [DataMember]
        public double Score { get; set; }
        [DataMember]
        public string Skill { get; set; }
        [DataMember]
        public string Edu { get; set; }
        [DataMember]
        public string Exp { get; set; }
        [DataMember]
        public string NewComment { get; set; }
    }

    [DataContract]
    public class DrugRemind
    {
        [DataMember]
        public int CalendarID { get; set; }
        [DataMember]
        public string PatientName { get; set; }
        [DataMember]
        public string EventName { get; set; }
        [DataMember]
        public DateTime EventTime { get; set; }
        [DataMember]
        public string Email { get; set; }
        [DataMember]
        public string PhoneNumber { get; set; }
        [DataMember]
        public bool WantBeRemind { get; set; }
        [DataMember]
        public string Division { get; set; }
        [DataMember]
        public bool IsRemind { get; set; }
        [DataMember]
        public int BeforeDays { get; set; }


    }


}
